package com.yc.goods.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.entity.GoodsType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsTypeDao extends BaseMapper<GoodsType> {

    @Select("select tno,tname,pic,status from goodstype where status = #{status}")
    List<GoodsType> findByStatus(Integer status);
}
